<?php
/* @var $this SiteController */
/* @var $model LoginForm */
/* @var $form CActiveForm  */
$this->pageTitle = 'Đăng nhập - ' . Yii::app()->name;
?>
<?php
$form = $this->beginWidget('CActiveForm', array(
    'id' => 'login-form',
    'enableClientValidation' => true,
    'clientOptions' => array(
        'validateOnSubmit' => true,
    ),
    'htmlOptions' => array(
        'class' => 'form-signin'
    )
        )
);
?>

<h2 class="form-signin-heading">Đăng nhập</h2>

<?php echo $form->textField($model, 'username', array('class' => 'form-control', 'placeholder' => 'Email')); ?>
<?php echo $form->error($model, 'username'); ?>

<?php echo $form->passwordField($model, 'password', array('class' => 'form-control', 'placeholder' => 'Mật khẩu')); ?>
<?php echo $form->error($model, 'password'); ?>
<label class="checkbox">
    <?php echo $form->checkBox($model, 'rememberMe'); ?> Ghi nhớ đăng nhập
</label>

<div class="row buttons">
    <?php echo CHtml::submitButton('Đăng nhập', array('class' => 'btn btn-lg btn-primary btn-block')); ?>
</div>

<?php $this->endWidget(); ?>
